package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HCheckPlanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HCheckPlanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCpnIdIsNull() {
            addCriterion("cpn_id is null");
            return (Criteria) this;
        }

        public Criteria andCpnIdIsNotNull() {
            addCriterion("cpn_id is not null");
            return (Criteria) this;
        }

        public Criteria andCpnIdEqualTo(Integer value) {
            addCriterion("cpn_id =", value, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdNotEqualTo(Integer value) {
            addCriterion("cpn_id <>", value, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdGreaterThan(Integer value) {
            addCriterion("cpn_id >", value, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cpn_id >=", value, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdLessThan(Integer value) {
            addCriterion("cpn_id <", value, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdLessThanOrEqualTo(Integer value) {
            addCriterion("cpn_id <=", value, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdIn(List<Integer> values) {
            addCriterion("cpn_id in", values, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdNotIn(List<Integer> values) {
            addCriterion("cpn_id not in", values, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdBetween(Integer value1, Integer value2) {
            addCriterion("cpn_id between", value1, value2, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cpn_id not between", value1, value2, "cpnId");
            return (Criteria) this;
        }

        public Criteria andCpnDateIsNull() {
            addCriterion("cpn_date is null");
            return (Criteria) this;
        }

        public Criteria andCpnDateIsNotNull() {
            addCriterion("cpn_date is not null");
            return (Criteria) this;
        }

        public Criteria andCpnDateEqualTo(Date value) {
            addCriterion("cpn_date =", value, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateNotEqualTo(Date value) {
            addCriterion("cpn_date <>", value, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateGreaterThan(Date value) {
            addCriterion("cpn_date >", value, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateGreaterThanOrEqualTo(Date value) {
            addCriterion("cpn_date >=", value, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateLessThan(Date value) {
            addCriterion("cpn_date <", value, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateLessThanOrEqualTo(Date value) {
            addCriterion("cpn_date <=", value, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateIn(List<Date> values) {
            addCriterion("cpn_date in", values, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateNotIn(List<Date> values) {
            addCriterion("cpn_date not in", values, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateBetween(Date value1, Date value2) {
            addCriterion("cpn_date between", value1, value2, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnDateNotBetween(Date value1, Date value2) {
            addCriterion("cpn_date not between", value1, value2, "cpnDate");
            return (Criteria) this;
        }

        public Criteria andCpnContentIsNull() {
            addCriterion("cpn_content is null");
            return (Criteria) this;
        }

        public Criteria andCpnContentIsNotNull() {
            addCriterion("cpn_content is not null");
            return (Criteria) this;
        }

        public Criteria andCpnContentEqualTo(String value) {
            addCriterion("cpn_content =", value, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentNotEqualTo(String value) {
            addCriterion("cpn_content <>", value, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentGreaterThan(String value) {
            addCriterion("cpn_content >", value, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentGreaterThanOrEqualTo(String value) {
            addCriterion("cpn_content >=", value, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentLessThan(String value) {
            addCriterion("cpn_content <", value, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentLessThanOrEqualTo(String value) {
            addCriterion("cpn_content <=", value, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentLike(String value) {
            addCriterion("cpn_content like", value, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentNotLike(String value) {
            addCriterion("cpn_content not like", value, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentIn(List<String> values) {
            addCriterion("cpn_content in", values, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentNotIn(List<String> values) {
            addCriterion("cpn_content not in", values, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentBetween(String value1, String value2) {
            addCriterion("cpn_content between", value1, value2, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnContentNotBetween(String value1, String value2) {
            addCriterion("cpn_content not between", value1, value2, "cpnContent");
            return (Criteria) this;
        }

        public Criteria andCpnCodeIsNull() {
            addCriterion("cpn_code is null");
            return (Criteria) this;
        }

        public Criteria andCpnCodeIsNotNull() {
            addCriterion("cpn_code is not null");
            return (Criteria) this;
        }

        public Criteria andCpnCodeEqualTo(String value) {
            addCriterion("cpn_code =", value, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeNotEqualTo(String value) {
            addCriterion("cpn_code <>", value, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeGreaterThan(String value) {
            addCriterion("cpn_code >", value, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeGreaterThanOrEqualTo(String value) {
            addCriterion("cpn_code >=", value, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeLessThan(String value) {
            addCriterion("cpn_code <", value, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeLessThanOrEqualTo(String value) {
            addCriterion("cpn_code <=", value, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeLike(String value) {
            addCriterion("cpn_code like", value, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeNotLike(String value) {
            addCriterion("cpn_code not like", value, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeIn(List<String> values) {
            addCriterion("cpn_code in", values, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeNotIn(List<String> values) {
            addCriterion("cpn_code not in", values, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeBetween(String value1, String value2) {
            addCriterion("cpn_code between", value1, value2, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnCodeNotBetween(String value1, String value2) {
            addCriterion("cpn_code not between", value1, value2, "cpnCode");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsIsNull() {
            addCriterion("cpn_participants is null");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsIsNotNull() {
            addCriterion("cpn_participants is not null");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsEqualTo(String value) {
            addCriterion("cpn_participants =", value, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsNotEqualTo(String value) {
            addCriterion("cpn_participants <>", value, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsGreaterThan(String value) {
            addCriterion("cpn_participants >", value, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsGreaterThanOrEqualTo(String value) {
            addCriterion("cpn_participants >=", value, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsLessThan(String value) {
            addCriterion("cpn_participants <", value, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsLessThanOrEqualTo(String value) {
            addCriterion("cpn_participants <=", value, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsLike(String value) {
            addCriterion("cpn_participants like", value, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsNotLike(String value) {
            addCriterion("cpn_participants not like", value, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsIn(List<String> values) {
            addCriterion("cpn_participants in", values, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsNotIn(List<String> values) {
            addCriterion("cpn_participants not in", values, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsBetween(String value1, String value2) {
            addCriterion("cpn_participants between", value1, value2, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnParticipantsNotBetween(String value1, String value2) {
            addCriterion("cpn_participants not between", value1, value2, "cpnParticipants");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkIsNull() {
            addCriterion("cpn_remark is null");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkIsNotNull() {
            addCriterion("cpn_remark is not null");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkEqualTo(String value) {
            addCriterion("cpn_remark =", value, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkNotEqualTo(String value) {
            addCriterion("cpn_remark <>", value, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkGreaterThan(String value) {
            addCriterion("cpn_remark >", value, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("cpn_remark >=", value, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkLessThan(String value) {
            addCriterion("cpn_remark <", value, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkLessThanOrEqualTo(String value) {
            addCriterion("cpn_remark <=", value, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkLike(String value) {
            addCriterion("cpn_remark like", value, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkNotLike(String value) {
            addCriterion("cpn_remark not like", value, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkIn(List<String> values) {
            addCriterion("cpn_remark in", values, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkNotIn(List<String> values) {
            addCriterion("cpn_remark not in", values, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkBetween(String value1, String value2) {
            addCriterion("cpn_remark between", value1, value2, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnRemarkNotBetween(String value1, String value2) {
            addCriterion("cpn_remark not between", value1, value2, "cpnRemark");
            return (Criteria) this;
        }

        public Criteria andCpnStatusIsNull() {
            addCriterion("cpn_status is null");
            return (Criteria) this;
        }

        public Criteria andCpnStatusIsNotNull() {
            addCriterion("cpn_status is not null");
            return (Criteria) this;
        }

        public Criteria andCpnStatusEqualTo(Integer value) {
            addCriterion("cpn_status =", value, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusNotEqualTo(Integer value) {
            addCriterion("cpn_status <>", value, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusGreaterThan(Integer value) {
            addCriterion("cpn_status >", value, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("cpn_status >=", value, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusLessThan(Integer value) {
            addCriterion("cpn_status <", value, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusLessThanOrEqualTo(Integer value) {
            addCriterion("cpn_status <=", value, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusIn(List<Integer> values) {
            addCriterion("cpn_status in", values, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusNotIn(List<Integer> values) {
            addCriterion("cpn_status not in", values, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusBetween(Integer value1, Integer value2) {
            addCriterion("cpn_status between", value1, value2, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("cpn_status not between", value1, value2, "cpnStatus");
            return (Criteria) this;
        }

        public Criteria andCpnStartIsNull() {
            addCriterion("cpn_start is null");
            return (Criteria) this;
        }

        public Criteria andCpnStartIsNotNull() {
            addCriterion("cpn_start is not null");
            return (Criteria) this;
        }

        public Criteria andCpnStartEqualTo(Date value) {
            addCriterion("cpn_start =", value, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartNotEqualTo(Date value) {
            addCriterion("cpn_start <>", value, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartGreaterThan(Date value) {
            addCriterion("cpn_start >", value, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartGreaterThanOrEqualTo(Date value) {
            addCriterion("cpn_start >=", value, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartLessThan(Date value) {
            addCriterion("cpn_start <", value, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartLessThanOrEqualTo(Date value) {
            addCriterion("cpn_start <=", value, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartIn(List<Date> values) {
            addCriterion("cpn_start in", values, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartNotIn(List<Date> values) {
            addCriterion("cpn_start not in", values, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartBetween(Date value1, Date value2) {
            addCriterion("cpn_start between", value1, value2, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnStartNotBetween(Date value1, Date value2) {
            addCriterion("cpn_start not between", value1, value2, "cpnStart");
            return (Criteria) this;
        }

        public Criteria andCpnEndIsNull() {
            addCriterion("cpn_end is null");
            return (Criteria) this;
        }

        public Criteria andCpnEndIsNotNull() {
            addCriterion("cpn_end is not null");
            return (Criteria) this;
        }

        public Criteria andCpnEndEqualTo(Date value) {
            addCriterion("cpn_end =", value, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndNotEqualTo(Date value) {
            addCriterion("cpn_end <>", value, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndGreaterThan(Date value) {
            addCriterion("cpn_end >", value, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndGreaterThanOrEqualTo(Date value) {
            addCriterion("cpn_end >=", value, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndLessThan(Date value) {
            addCriterion("cpn_end <", value, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndLessThanOrEqualTo(Date value) {
            addCriterion("cpn_end <=", value, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndIn(List<Date> values) {
            addCriterion("cpn_end in", values, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndNotIn(List<Date> values) {
            addCriterion("cpn_end not in", values, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndBetween(Date value1, Date value2) {
            addCriterion("cpn_end between", value1, value2, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnEndNotBetween(Date value1, Date value2) {
            addCriterion("cpn_end not between", value1, value2, "cpnEnd");
            return (Criteria) this;
        }

        public Criteria andCpnMakerIsNull() {
            addCriterion("cpn_maker is null");
            return (Criteria) this;
        }

        public Criteria andCpnMakerIsNotNull() {
            addCriterion("cpn_maker is not null");
            return (Criteria) this;
        }

        public Criteria andCpnMakerEqualTo(String value) {
            addCriterion("cpn_maker =", value, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerNotEqualTo(String value) {
            addCriterion("cpn_maker <>", value, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerGreaterThan(String value) {
            addCriterion("cpn_maker >", value, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerGreaterThanOrEqualTo(String value) {
            addCriterion("cpn_maker >=", value, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerLessThan(String value) {
            addCriterion("cpn_maker <", value, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerLessThanOrEqualTo(String value) {
            addCriterion("cpn_maker <=", value, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerLike(String value) {
            addCriterion("cpn_maker like", value, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerNotLike(String value) {
            addCriterion("cpn_maker not like", value, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerIn(List<String> values) {
            addCriterion("cpn_maker in", values, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerNotIn(List<String> values) {
            addCriterion("cpn_maker not in", values, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerBetween(String value1, String value2) {
            addCriterion("cpn_maker between", value1, value2, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnMakerNotBetween(String value1, String value2) {
            addCriterion("cpn_maker not between", value1, value2, "cpnMaker");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionIsNull() {
            addCriterion("cpn_whi_position is null");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionIsNotNull() {
            addCriterion("cpn_whi_position is not null");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionEqualTo(String value) {
            addCriterion("cpn_whi_position =", value, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionNotEqualTo(String value) {
            addCriterion("cpn_whi_position <>", value, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionGreaterThan(String value) {
            addCriterion("cpn_whi_position >", value, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionGreaterThanOrEqualTo(String value) {
            addCriterion("cpn_whi_position >=", value, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionLessThan(String value) {
            addCriterion("cpn_whi_position <", value, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionLessThanOrEqualTo(String value) {
            addCriterion("cpn_whi_position <=", value, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionLike(String value) {
            addCriterion("cpn_whi_position like", value, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionNotLike(String value) {
            addCriterion("cpn_whi_position not like", value, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionIn(List<String> values) {
            addCriterion("cpn_whi_position in", values, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionNotIn(List<String> values) {
            addCriterion("cpn_whi_position not in", values, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionBetween(String value1, String value2) {
            addCriterion("cpn_whi_position between", value1, value2, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnWhiPositionNotBetween(String value1, String value2) {
            addCriterion("cpn_whi_position not between", value1, value2, "cpnWhiPosition");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusIsNull() {
            addCriterion("cpn_plan_status is null");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusIsNotNull() {
            addCriterion("cpn_plan_status is not null");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusEqualTo(Integer value) {
            addCriterion("cpn_plan_status =", value, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusNotEqualTo(Integer value) {
            addCriterion("cpn_plan_status <>", value, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusGreaterThan(Integer value) {
            addCriterion("cpn_plan_status >", value, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("cpn_plan_status >=", value, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusLessThan(Integer value) {
            addCriterion("cpn_plan_status <", value, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusLessThanOrEqualTo(Integer value) {
            addCriterion("cpn_plan_status <=", value, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusIn(List<Integer> values) {
            addCriterion("cpn_plan_status in", values, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusNotIn(List<Integer> values) {
            addCriterion("cpn_plan_status not in", values, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusBetween(Integer value1, Integer value2) {
            addCriterion("cpn_plan_status between", value1, value2, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPlanStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("cpn_plan_status not between", value1, value2, "cpnPlanStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusIsNull() {
            addCriterion("cpn_res_status is null");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusIsNotNull() {
            addCriterion("cpn_res_status is not null");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusEqualTo(Integer value) {
            addCriterion("cpn_res_status =", value, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusNotEqualTo(Integer value) {
            addCriterion("cpn_res_status <>", value, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusGreaterThan(Integer value) {
            addCriterion("cpn_res_status >", value, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("cpn_res_status >=", value, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusLessThan(Integer value) {
            addCriterion("cpn_res_status <", value, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusLessThanOrEqualTo(Integer value) {
            addCriterion("cpn_res_status <=", value, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusIn(List<Integer> values) {
            addCriterion("cpn_res_status in", values, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusNotIn(List<Integer> values) {
            addCriterion("cpn_res_status not in", values, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusBetween(Integer value1, Integer value2) {
            addCriterion("cpn_res_status between", value1, value2, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnResStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("cpn_res_status not between", value1, value2, "cpnResStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusIsNull() {
            addCriterion("cpn_adj_status is null");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusIsNotNull() {
            addCriterion("cpn_adj_status is not null");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusEqualTo(Integer value) {
            addCriterion("cpn_adj_status =", value, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusNotEqualTo(Integer value) {
            addCriterion("cpn_adj_status <>", value, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusGreaterThan(Integer value) {
            addCriterion("cpn_adj_status >", value, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("cpn_adj_status >=", value, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusLessThan(Integer value) {
            addCriterion("cpn_adj_status <", value, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusLessThanOrEqualTo(Integer value) {
            addCriterion("cpn_adj_status <=", value, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusIn(List<Integer> values) {
            addCriterion("cpn_adj_status in", values, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusNotIn(List<Integer> values) {
            addCriterion("cpn_adj_status not in", values, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusBetween(Integer value1, Integer value2) {
            addCriterion("cpn_adj_status between", value1, value2, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnAdjStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("cpn_adj_status not between", value1, value2, "cpnAdjStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusIsNull() {
            addCriterion("cpn_pal_status is null");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusIsNotNull() {
            addCriterion("cpn_pal_status is not null");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusEqualTo(Integer value) {
            addCriterion("cpn_pal_status =", value, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusNotEqualTo(Integer value) {
            addCriterion("cpn_pal_status <>", value, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusGreaterThan(Integer value) {
            addCriterion("cpn_pal_status >", value, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("cpn_pal_status >=", value, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusLessThan(Integer value) {
            addCriterion("cpn_pal_status <", value, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusLessThanOrEqualTo(Integer value) {
            addCriterion("cpn_pal_status <=", value, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusIn(List<Integer> values) {
            addCriterion("cpn_pal_status in", values, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusNotIn(List<Integer> values) {
            addCriterion("cpn_pal_status not in", values, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusBetween(Integer value1, Integer value2) {
            addCriterion("cpn_pal_status between", value1, value2, "cpnPalStatus");
            return (Criteria) this;
        }

        public Criteria andCpnPalStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("cpn_pal_status not between", value1, value2, "cpnPalStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}